/********************************************************/
/*	Copyright (C) 2012 Gong Li Bin			*/
/*	Project:	MapReduce			*/
/*	Author:		gong_libin			*/
/*	Date:		2012_03_31			*/
/*	File:		MrReport.h			*/
/********************************************************/

#ifndef	_MRREPORT_H
#define	_MRREPORT_H

#include "MrDb.h"
#include "MrDef.h"
#include "MrAvg.h"
#include "MrCpu.h"
#include "MrDsk.h"
#include "MrIos.h"
#include "MrMem.h"
#include "MrPro.h"
#include "MrUtl.h"
#include "MrPoll.h"
#include "MrPipe.h"
#include "MrConf.h"
#include "MrTime.h"
#include "MrMulti.h"

#include <getopt.h>
#include <signal.h>
#include <sys/wait.h>

#define	MR_RT_VERSION			"MrReport-2.0.0"
#define	MR_RT_CONFIG			"SELECT HostID,Timeslice,MultiAddr,MultiPort FROM %s.%s WHERE HostID=%s"

typedef struct tagMrReportConf
{
	char m_szHostID[MR_VALUE];
	char m_szTimeslice[MR_VALUE];
	char m_szMultiAddr[MR_VALUE];
	char m_szMultiPort[MR_VALUE];
}MRREPORTCONF_S;

void MrReportQuit(int iSignal);
void MrReportFork(UCHAR ucType);
void MrReportCore(UCHAR ucType);
void MrReportHelp(char* pszProc);
int MrReportConfig(char* pszConf);

#endif /* _MRREPORT_H */
